<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <style>
    .modol {
      position: absolute;
      background-color: azure;
      width: 300px;
      height: 500px;
      border: 1px solid yellow;
    }
  </style>
</head>

<body>
<div id="app">
<div><p> {{message}}</p>
<p>zheshi表演</p></div>
</body>
<script>
  
  //  <button @click="handleClick">button</button>
    // <Teleport to="body">
    //   <div class="modol">
    //     <p>这个一个弹框</p>
    //   </div>
    // </Teleport> 
  const { createApp, ref, version, Teleport,reactive } = Vue

  console.log('Teleport', Teleport);


  const app = createApp({
    setup() {
      const message = ref('iiiii');
      const state = reactive({
        count: 0,

      })
      

      const handleClick = (e) => {
        console.log('handleClick', e);
        debugger;

        message.value = 'vff';

      }
      return {
        message,
        handleClick
      }
    }
  })
  console.log('app', app);


  app.mount('#app')
</script>

</html>